package com.lagou.service.user.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("lagou-service-code")
@RequestMapping("/code")
public interface CodeServiceFeignClient {

    /**
     * 校验验证码是否正确，0正确1错误2超时
     */
    @GetMapping("/validate/{email}/{code}")
    Integer validate(@PathVariable String email, @PathVariable String code);
}
